package com.example.malltest0.thread;

import com.example.malltest0.Vo.FollowersVo;
import com.example.malltest0.common.utils.RequestUtil;
import com.example.malltest0.mbg.model.Followers;
import com.example.malltest0.service.FollowService;
import org.junit.Test;
import org.springframework.beans.factory.annotation.Autowired;

import java.util.List;

public class UpdateThread implements Runnable{
    
    @Autowired
    private FollowService followService;
    
    @Autowired
    private RequestUtil requestUtil;
    
    @Override
    public void run() {

    }

    public void updateDate(){
        List<FollowersVo> followersVos = followService.selectAll();
        for (FollowersVo followersVo : followersVos) {
            String s = RequestUtil.httpRequest(followersVo.getLink());

        }
    }

}
